﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WpfWordsLearner
{
	public static class Extension
	{
		public static Queue<T> ToQueue<T>(this IEnumerable<T> enumerable)where T: class
		{
			if(enumerable==null)
				return null;

			Queue<T> que = new Queue<T>();
			foreach (T item in enumerable)
			{
				que.Enqueue(item);
			}

			return que;
		}
	}
}
